package cn.xd.base.basic.type;

import cn.xd.common.exception.BizException;
import cn.xd.core.ddd.value.IdValue;

/**
 * @author : mirzaLin
 * @data : 2023/11/20
 * @description : 埋点id
 **/
public class BuriedPointId extends IdValue {
    public BuriedPointId() {
    }

    public BuriedPointId(Long value) {
        super(value);
    }

    /**
     * 对值进行业务校验
     */
    public static BuriedPointId of(Long value) {
        BuriedPointId obj = new BuriedPointId(value);
        obj.validate(value);
        return obj;
    }

    /**
     * 校验函数
     */
    @Override
    public void validate(Long value) throws BizException {

    }
}
